from google.appengine.ext import ndb
class User(ndb.Model):
    _use_cache = False
    _use_memcache = False
    city = ndb.StringProperty()
@ndb.transactional
def put_kaz_and_proppy():
  kazo_sensei = User(id="kazo", city="TOK").put()
  raise Exception("failure")
  User(id="proppy", city="SF", parent=kazo_sensei).put()
try: put_kaz_and_proppy()
except Exception as e: print e
print User.get_by_id("kazo")
